package com.rritw.webtools.util;

import java.util.regex.Pattern;

import com.rritw.webtools.common.Const;

/*
 * 类JSUtil.java的实现描述：TODO 类实现描述
 * @author ddp1j32 2015-4-2 上午10:02:21
 */
public abstract class CSSUtil {

    private static final Pattern MULTI_LINE_COMMENT = Pattern.compile("\\/\\*(\\s|.)*?\\*\\/");

    public static String removeCSSSComments(String css) {
        if (StringUtil.isEmpty(css)) {
            return css;
        }
        css = MULTI_LINE_COMMENT.matcher(css).replaceAll(Const.EMPTY_STRING);
        return css;
    }
}
